package com.zcf.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zcf.common.json.Body;
import com.zcf.pojo.User;
import com.zcf.service.MarshalServiceImpl;

@CrossOrigin
@Controller
@RequestMapping("/Marshal")
public class MarshalController {
	
	@Autowired
	MarshalServiceImpl msi;
	
	
	@PostMapping("Marshaltea")
	@ResponseBody
	public Body Marshaltea(User user){
		return msi.Marshaltea(user);
	}
	
	
}
